<!DOCTYPE html>
<html class="um landscape min-width-240px min-width-320px min-width-480px min-width-768px min-width-1024px">
    <head>
        <title></title>
        <meta charset="utf-8">
        <meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
        <link rel="stylesheet" href="css/ui-base.css">
        <link rel="stylesheet" href="css/ui-box.css">
        <link rel="stylesheet" href="css/project/ui-color-v3.css">
        <link rel="stylesheet" href="css/project/style.css">
        <link rel="stylesheet" href="css/zv_common.css">
		<script src="js/zy_control.js"></script>
		<script src="js/zy_click.js"></script>
		<script src="js/zy_json.js"></script>
		<script src="js/main.js"></script>
		<script src="js/init.js"></script>
		<script type="text/javascript" src="js/JsonSQL/jsonsql-0.1.js"></script>
		<script src="js/talkingdata.js"></script>
        <script>
          function promptfun(ServiceRecord,StaffId,TaskName,OperationName,OperationExternalName,RecorderID,Date_time){
		    uexWindow.cbPrompt=function(opId,dataType,data){
		      var obj = eval('('+data+')');
			  if(obj.num==0)
			  {
			  	 if(obj.value=='')
				 {
				 	score_yes("请输入您的打分备注",function(){promptfun(ServiceRecord,StaffId,TaskName,OperationName,OperationExternalName,RecorderID,Date_time);})
				 }
				 else
				 {
							var Note = obj.value/*评论备注*/
							var wsdl =regional_add_score_url
							var nameSpace = regional_add_score_nameSpace
							var paras ="StaffId|TaskName|OperationName|OperationExternalName|ServiceRecord|RecorderID|Note|Date";
							var values =StaffId+"|"+TaskName+"|"+OperationName+"|"+OperationExternalName+"|"+ServiceRecord+"|"+RecorderID+"|"+Note+"|"+Date_time;
							var method =regional_add_score_function
							var jsonPage =[{'key':'wsdl','type':'0','value':wsdl},{'key':'KEY1','type':'0','value':'1'},{'key':'KEY2','type':'0','value':'1'}, {'key':'KEY3','type':'0','value':'1'}, {'key':'nameSpace','type':'0','value':nameSpace}, {'key':'method','type':'0','value':method}, {'key':'paras','type':'0','value':paras}, {'key':'values','type':'0','value':values}];
							$.getJSON(UrlClient+"&SOAPType=yes",function(json){
								$alert("打分成功")
								var DialogBox_type=localStorage.getItem("DialogBox_type")
								var DialogBox_content=localStorage.getItem("DialogBox_content")
								var DialogBox_class_i=localStorage.getItem("DialogBox_class_i")
								DialogBox(DialogBox_type, DialogBox_content, DialogBox_class_i)

							},"json",function(e){},"POST",jsonPage,false);
				 }	
			  }
		    }
		    uexWindow.prompt("打分","不等于3分打分备注","",["打分","取消"]);
		  }
        function	LoadDataS(id,StaffId,TaskName,OperationName,OperationExternalName,RecorderID,Date_time)
		{
			var fenshu= $$(id).value
			if(fenshu=='')
			{
				$alert("打分不能为空")
			}
			else if(fenshu=='3')
			{
						var Note = ''; /*评论备注*/
						var wsdl =regional_add_score_url
						var nameSpace = regional_add_score_nameSpace
						var paras ="StaffId|TaskName|OperationName|OperationExternalName|ServiceRecord|RecorderID|Note|Date";
						var values =StaffId+"|"+TaskName+"|"+OperationName+"|"+OperationExternalName+"|"+fenshu+"|"+RecorderID+"|"+Note+"|"+Date_time;
						var method =regional_add_score_function
						var jsonPage =[{'key':'wsdl','type':'0','value':wsdl},{'key':'KEY1','type':'0','value':'1'},{'key':'KEY2','type':'0','value':'1'}, {'key':'KEY3','type':'0','value':'1'}, {'key':'nameSpace','type':'0','value':nameSpace}, {'key':'method','type':'0','value':method}, {'key':'paras','type':'0','value':paras}, {'key':'values','type':'0','value':values}];
						$.getJSON(UrlClient+"&SOAPType=yes",function(json){
								$alert("打分成功")
								var DialogBox_type=localStorage.getItem("DialogBox_type")
								var DialogBox_content=localStorage.getItem("DialogBox_content")
								var DialogBox_class_i=localStorage.getItem("DialogBox_class_i")
								DialogBox(DialogBox_type, DialogBox_content, DialogBox_class_i)
						},"json",function(e){},"POST",jsonPage,false);
			}
			else
			{
				promptfun(fenshu,StaffId,TaskName,OperationName,OperationExternalName,RecorderID,Date_time)
			}
		}
            function rate(obj, oEvent,comments_id){
				 var imgSrc = 'images/star.png';
                var imgSrc_2 = 'images/star-hover.png';
                if (obj.rateFlag) 
                    return;
                var e = oEvent || window.event;
                var target = e.target || e.srcElement;
                var imgArray = obj.getElementsByTagName("img");
                for (var i = 0; i < imgArray.length; i++) {
                    imgArray[i]._num = i;
                    imgArray[i].onclick = function(){
                        if (obj.rateFlag) 
                            return;
							var ServiceRecord=this._num + 1
							//$alert(ServiceRecord)
							$$(comments_id).value=ServiceRecord
                        //obj.rateFlag = true;
                    };
                }
                if (target.tagName == "IMG") {
                    for (var j = 0; j < imgArray.length; j++) {
                        if (j <= target._num) {
                            imgArray[j].src = imgSrc_2;
                        }
                        else {
                            imgArray[j].src = imgSrc;
                        }
                    }
                }
                else {
                    for (var k = 0; k < imgArray.length; k++) {
                        imgArray[k].src = imgSrc;
                    }
                }
				
            }
        </script>
        <style>
            #taskList {width: 100%; background: #fff;overflow-x: hidden; text-align: center;margin: 0 auto }
            .listicon { padding: 1px;width: 98%;margin: 0 auto; text-align: center; }
            .icon {width: 20%;padding: 0em;float: left; text-align: center;font-size: 0.8em;background: url(images/ededed.png) right bottom repeat-y; border-bottom: solid #ededed 1px; }
            .icon img {width: 70%; padding: 1em 0.5em 0.5em 0.5em}
            .txt {margin-bottom: 0.8em; overflow: hidden; white-space: nowrap; /*text-overflow:ellipsis;*/ }
            .right {float: right;right: -1px}
            .selected { ba padding-right: 1px;padding-bottom: 1px;}
            /* 打分 */
            .starWrapper img {  cursor: pointer;display: inline; }
            /* 背景 */
            .ico_bg1 {background-color: #00FF01; }
            /* 绿 */
            .ico_bg2 { background-color: #FFFF00; }
            /* 黄 */
            .ico_bg3 { background-color: #F20609;}
            /* 白 */
            .ico_bg4 {  background-color: #FFF; }
            /* 白 */
            .ico_bg5 {background-color: #e8e8e8; }
            /* 灰色 */
            .ico_radius {border-radius: 100%; }
            /* 圆 */
            .ico_border {border: 1px solid #CCC;}
            /*灰边框 */
            .ico_border2 {border: 1px solid #FFF;}
            .zv_noticebo{  border-bottom:1px solid #e5e5e5;}
			.zv_imc{  background:#789de2; color:#fff}
			.zv_imc1{background:#f2f2f2; color:#333333}
			.zv_imcline{  background:#789de2; color:#fff; border-right:1px solid #fff;}
			.zv_imcline1{color:#333333; border-bottom:1px solid #789de2; border-left:1px solid #789de2;}
			.zv_imcline2{ border-right:1px solid #789de2;}
			.zv_imcline3{border:1px solid #789de2; background:#ffcc00;}
			.zv_imvcb ul li{}
			.zv_imvcli{ border:1px solid #00ff00;}
			 /*弹出框内样式 */
			.round{color:#FFF;height:2em;background-color:#9DAFCA;border-radius:10px 10px 1px 1px;}
			.zv_padding{padding:0.2em;height:2em;}
			.zv_bg1{ background-color:#E2E8EF; text-align:center;padding:0.2em;height:2em;}
			.zv_bg2{ background-color:#f8f8f8; text-align:center;padding:0.2em;height:2em;}
        </style>
    </head>
    <body class="um-vp c-wh"  ontouchstart >
		<div id="DialogBox_html"></div>
		<div id="body_content" >
        <div id="intelligent_monitoring"></div>
        <div class="ub ub-ver">
            <div class="ub" id="cir1">
                <div id="cir1left">
                </div>
                <div id="cir11">
                </div>
                <div id="cir1right">
                </div>
            </div>
            <div style="position:relative; z-index:2">
                <div class="ub" id="flight" style="text-align:center;">
                    <img src="images/flight.png" style="width:100%">
                    <div class="ub ub-ver" id="flight_content" style="position:absolute;top:0px; width:100%">
                       <table width="100%" h id="ico_height" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td width="12%" align="center" id="qian_yin_che.png">&nbsp; </td>
                                <td width="12%" align="center" id="deng_ji.png">&nbsp;</td>
                                <td width="6%" align="center" id="ico_1_3">&nbsp; </td>
                                <td width="12%" align="right" id="VIP_che_liang.png">&nbsp;</td>
                                <td width="16%" align="center" id="bai_du_che.png">&nbsp;</td>
                                <td width="42%" align="left" id="pei_pin_che.png">&nbsp;</td>
                            </tr>
                            <tr>
                                <td align="center" id="lv_ke_che_liang.png">&nbsp;</td>
                                <td align="center" id="deng_ji_kou.png">&nbsp;</td>
                                <td align="center" id="ico_2_3">&nbsp;</td>
                                <td align="right" id="ke_ti_che.png">&nbsp;</td>
                                <td align="center">&nbsp;</td>
                                <td align="left" id="bao_kan_che.png">&nbsp;</td>
                            </tr>
                            <tr>
                                <td align="center" id="chuan_song_che.png">&nbsp;</td>
                                <td align="center" id="deng_ji_kong_zhi.png">&nbsp;</td>
                                <td align="center" id="ico_3_3">&nbsp;</td>
                                <td align="right" id="ico_3_4">&nbsp;</td>
                                <td align="center"  id="hang_ban_jian_kong.png">&nbsp;</td>
                                <td align="left" id="can_ji_che.png">&nbsp;</td>
                            </tr>
                            <tr>
                                <td align="center" id="chuan_song_che_ren_wu.png">&nbsp;</td>
                                <td align="center" id="deng_ji_si_pai.png">&nbsp;</td>
                                <td align="center" id="ico_4_3">&nbsp;</td>
                                <td align="right" id="guan_ke_cang_men.png">&nbsp;</td>
                                <td align="center"  id="qing_jie_ban_zu.png">&nbsp;</td>
                                <td align="left" id="qing_jie_che.png">&nbsp;</td>
                            </tr>
                            <tr>
                                <td align="center" id="la_ji_che.png">&nbsp;</td>
                                <td align="center" id="song_ji.png">&nbsp;</td>
                                <td align="center" id="ico_5_3">&nbsp;</td>
                                <td align="right" id="ico_5_4">&nbsp;</td>
                                <td align="center"  id="pei_liao_zuo_yie_kai_shi.png" >&nbsp;</td>
                                <td align="left" id="qing_shui_che.png">&nbsp;</td>
                            </tr>
                            <tr>
                                <td align="center" id="diao_du_che.png">&nbsp;</td>
                                <td align="center" id="jie_ji.png">&nbsp;</td>
                                <td align="center" id="ico_6_3">&nbsp;</td>
                                <td align="right" id="ico_6_4">&nbsp;</td>
                                <td align="center" id="huo_wu_dao_wei_shi_jian.png">&nbsp;</td>
                                <td align="left" id="wu_shui_che.png">&nbsp;</td>
                            </tr>
                            <tr>
                                <td align="center" id="gui_bin.png">&nbsp;</td>
                                <td align="center" id="zhong_zhuan.png">&nbsp;</td>
                                <td align="center" id="ico_7_3">&nbsp;</td>
                                <td align="right" id="ico_7_4">&nbsp;</td>
                                <td align="center" id="you_liao_zuo_yie_kai_shi.png">&nbsp;</td>
                                <td align="left" id="ico_7_6">&nbsp; </td>
                            </tr>
                            <tr>
                                <td align="center" id="te_shu_fu_wu.png">&nbsp;</td>
                                <td align="center" id="fen_xie.png">&nbsp;</td>
                                <td align="center" id="ico_8_3">&nbsp;</td>
                                <td align="right" id="ico_8_4">&nbsp;</td>
                                <td align="center">&nbsp;</td>
                                <td align="left" id="ico_8_6">&nbsp;</td>
                            </tr>
                            <tr>
                                <td align="center" id="te_fu.png">&nbsp;</td>
                                <td align="center" id="fen_jian.png">&nbsp;</td>
                                <td align="center" id="ico_9_3">&nbsp;</td>
                                <td align="right" id="guan_huo_cang_min.png">&nbsp;</td>
                                <td align="center" id="ban_zu_zhuang_xie.png">&nbsp;</td>
                                <td align="left" id="ji_dong_zhuang_xie.png">&nbsp;</td>
                            </tr>
                            <tr>
                                <td align="center" id="qi_ta.png">&nbsp;</td>
                                <td align="center" id="ico_10_2">&nbsp;</td>
                                <td align="center" id="ico_10_3">&nbsp;</td>
                                <td align="right" id="tui_chu_shi_jian.png">&nbsp;</td>
                                <td align="center" id="sheng_jiang_che.png">&nbsp;</td>
                                <td align="left" id="sheng_jiang_che_ren_wu.png">&nbsp;</td>
                            </tr>
                        </table>
                    </div>
                </div>
            </div>
            <!--img end-->
            <div style="background:#ededed; height:1px">
            </div>
            <div id="taskList">
            </div>
            <div id="taskListadd">
            </div>
        </div>
		</div>
    </body>
    <script>
        zy_init();
		var  screen_Height=document.body.clientHeight
		document.getElementById("body_content").style.height=screen_Height+'px';
		document.getElementById("body_content").style.overflow='auto';
        window.uexOnload = function(type){
            if (!type) {
				IC.talkingDataCount("智能监控","0019");
				Loading(0);
				getDefaultIcon()
            }
        }
	function	intelligent_monitoring(){
		IC.talkingDataCount("智能监控","0019");
		Loading(0);
		var flight_time= localStorage.getItem("flight_time");
		var jsonstr= localStorage.getItem("zvData");
		jsonstr = jsonstr.replace('{"DataTable":', '{"items":'); //字符替换 
		jsonstr = "{\"data\": " + jsonstr + "}";
		var strx=''
		var json = strToJson(jsonstr);
		var strs = flight_time.split("|");
		var strs1 = strs[0]
		var strs2 = strs[1]
		var data = jsonsql.query("select * from json.data.items where (OPERATIONNAME=='" + strs1 + "' && OPERATIONPLANNEDEND=='" + strs2 + "')", json);
		var OPERATIONNAME = data[0].OPERATIONNAME//进港航班
		var OPERATIONEXTERNALNAME = data[0].OPERATIONEXTERNALNAME//出港航班
		if (OPERATIONEXTERNALNAME == 'undefined' || OPERATIONEXTERNALNAME == undefined || OPERATIONEXTERNALNAME == '') {
			OPERATIONEXTERNALNAME = ''
		}
		else {
			OPERATIONEXTERNALNAME = '/' + OPERATIONEXTERNALNAME
		}
		var PREVIOUSSTATION = data[0].PREVIOUSSTATION//前站编码
		if (PREVIOUSSTATION == 'undefined' || PREVIOUSSTATION == undefined||PREVIOUSSTATION ==''||PREVIOUSSTATION ==null) {
			PREVIOUSSTATION = ''
		}
		var CURRENTSTATION = data[0].CURRENTSTATION//本站编码
		if (CURRENTSTATION == 'undefined' || CURRENTSTATION == undefined||CURRENTSTATION ==''||CURRENTSTATION ==null) {
			CURRENTSTATION = ''
		}
		else {
			if (PREVIOUSSTATION != '') {
				CURRENTSTATION = "-" + CURRENTSTATION
			}
		}
		var NEXTSTATION = data[0].NEXTSTATION//到站编码
		if (NEXTSTATION == 'undefined' || NEXTSTATION == undefined||NEXTSTATION ==''||NEXTSTATION ==null) {
			NEXTSTATION = ''
		}
		else {
			if (PREVIOUSSTATION != '' & CURRENTSTATION != '') {
				NEXTSTATION = "-" + NEXTSTATION
			}
		}
		var codin = PREVIOUSSTATION + CURRENTSTATION + NEXTSTATION
		var OPERATIONINTERNALNAME = data[0].OPERATIONINTERNALNAME//机号
		var OPERATIONEQUIPMENT = data[0].OPERATIONEQUIPMENT//机型
		var STARTLOCATION = data[0].STARTLOCATION//到达桥位
		var ENDLOCATION = data[0].ENDLOCATION//起飞桥位
		////////////////////////////////头部日期、计划起飞开始	
		var OPERATIONPLANNEDEND = data[0].OPERATIONPLANNEDEND//航班计划结束时间（计划起飞时间）
		var date_of = ''
		var time_of = ''
		if (OPERATIONPLANNEDEND != '' && OPERATIONPLANNEDEND != 'undefined' && OPERATIONPLANNEDEND != undefined) {
			if (OPERATIONPLANNEDEND.indexOf("Z") > 0) {
				var timej = ceair_Greenwich_time(OPERATIONPLANNEDEND)
				timej = zv_detailed(timej)
				date_of = timej.substring(0, 10);//截取
				time_of = timej.substring(11, 16);//截取
			}
			else {
				var strs = OPERATIONPLANNEDEND.split("T"); //字符分割 
				date_of = strs[0]
				time_of = strs[1]
				time_of = time_of.substring(0, 5);//截取
			}
		}
		else {
			var OPERATIONACTUALEND = data[0].OPERATIONACTUALEND//航班实际结束时间（实际起飞时间）
			if (OPERATIONACTUALEND != '' && OPERATIONACTUALEND != 'undefined' && OPERATIONACTUALEND != undefined) {
				if (OPERATIONACTUALEND.indexOf("Z") > 0) {
					var timej = ceair_Greenwich_time(OPERATIONACTUALEND)
					timej = zv_detailed(timej)
					date_of = timej.substring(0, 10);//截取
					time_of = timej.substring(11, 16);//截取
				}
				else {
					var strs = OPERATIONACTUALEND.split("T"); //字符分割 
					date_of = strs[0]
					time_of = strs[1]
					time_of = time_of.substring(0, 5);//截取
				}
			}
		}
		////////////////////////////////头部日期、计划起飞结束	
		////////////////////////////////前站落地开始		
		var OPERATIONACTUALSTART = data[0].OPERATIONACTUALSTART//航班实际开始时间（前站落地时间）
		var OPERATIONESTIMATEDSTART = data[0].OPERATIONESTIMATEDSTART//航班预计开始时间（预计到达时间）
		var OPERATIONPLANNEDSTART = data[0].OPERATIONPLANNEDSTART//航班计划开始时间（计划到达时间）
		var before_time = ''
		var qianzhan_time = ''//前站落地时间戳
		if (OPERATIONACTUALSTART != '' && OPERATIONACTUALSTART != 'undefined' && OPERATIONACTUALSTART != undefined)//航班实际开始时间（前站落地时间）
		{
			if (OPERATIONACTUALSTART.indexOf("Z") > 0) {
				var timeq = ceair_Greenwich_time(OPERATIONACTUALSTART)
				qianzhan_time = timeq//前站落地时间戳
				timeq = zv_detailed(timeq)
				before_time = timeq.substring(11, 16);//截取
			}
			else {
				qianzhan_time = ceair_time(OPERATIONACTUALSTART)
				qianzhan_time = zv_transdate(qianzhan_time)//前站落地时间戳
				before_time = OPERATIONACTUALSTART.split("T");
				before_time = before_time[1]
				before_time = before_time.substring(0, 5);
			}
		}
		else 
			if (OPERATIONESTIMATEDSTART != '' && OPERATIONESTIMATEDSTART != 'undefined' && OPERATIONESTIMATEDSTART != undefined)//航班预计开始时间（预计到达时间）
			{
				if (OPERATIONESTIMATEDSTART.indexOf("Z") > 0) {
					var timeq = ceair_Greenwich_time(OPERATIONESTIMATEDSTART)
					qianzhan_time = timeq//前站落地时间戳
					timeq = zv_detailed(timeq)
					before_time = timeq.substring(11, 16);//截取
				}
				else {
					qianzhan_time = ceair_time(OPERATIONESTIMATEDSTART)
					qianzhan_time = zv_transdate(qianzhan_time)//前站落地时间戳
					before_time = OPERATIONESTIMATEDSTART.split("T");
					before_time = before_time[1]
					before_time.substring(0, 5);
				}
			}
			else {
				if (OPERATIONPLANNEDSTART != '' && OPERATIONPLANNEDSTART != 'undefined' && OPERATIONPLANNEDSTART != undefined) {
					if (OPERATIONPLANNEDSTART.indexOf("Z") > 0) {
						var timeq = ceair_Greenwich_time(OPERATIONPLANNEDSTART)
						qianzhan_time = timeq//前站落地时间戳
						timeq = zv_detailed(timeq)
						before_time = timeq.substring(11, 16);//截取
					}
					else {
						qianzhan_time = ceair_time(OPERATIONPLANNEDSTART)
						qianzhan_time = zv_transdate(qianzhan_time)//前站落地时间戳
						before_time = OPERATIONPLANNEDSTART.split("T");
						before_time = before_time[1]
						before_time = before_time.substring(0, 5);
					}
				}
			}
		////////////////////////////////前站落地结束
		////////////////////////////////预离开始
		var OPERATIONESTIMATEDEND = data[0].OPERATIONESTIMATEDEND//航班预计结束时间（预离时间）
		var pre_time = ''
		if (OPERATIONESTIMATEDEND != '' && OPERATIONESTIMATEDEND != 'undefined' && OPERATIONESTIMATEDEND != undefined)//航班预计结束时间（预离时间）
		{
			if (OPERATIONESTIMATEDEND.indexOf("Z") > 0) {
				var pre_time = ceair_Greenwich_time(OPERATIONESTIMATEDEND)
				pre_time = zv_detailed(pre_time)
				pre_time = pre_time.substring(11, 16);//截取
			}
			else {
				pre_time = OPERATIONESTIMATEDEND.split("T");
				pre_time = pre_time[1]
				pre_time = pre_time.substring(0, 5);
			}
		}
		////////////////////////////////预离结束	
		////////////////////////////////目标保障开始
		var stood_ground = data[0].OPERATIONACTUALSTART//航班实际开始时间（前站落地时间）
		var shiji_time=data[0].CAB_CLOSE_TIME//新加任务可用
		var ensure_time = ''//目标保障时间戳
		var plan_time = data[0].OPERATIONPLANNEDEND//航班计划结束时间（计划起飞时间）
		var planning_departure_time = ''
		if (plan_time != '' && plan_time != 'undefined' && plan_time != undefined) {
			if (plan_time.indexOf("Z") > 0) {
				planning_departure_time = ceair_Greenwich_time(plan_time)//计划起飞时间戳
			}
			else {
				planning_departure_time = ceair_time(planning_departure_time)
				planning_departure_time = zv_transdate(planning_departure_time)//计划起飞时间戳
			}
		}
		if (stood_ground != '' && stood_ground != 'undefined' && stood_ground != undefined)//航班实际开始时间（前站落地时间）
		{
			var standard = '60'//标准过站时间分钟
			var zv_where='Code=="'+OPERATIONEQUIPMENT+'"'
			var zv_where='Code=="'+OPERATIONEQUIPMENT+'"'
			
			if (OPERATIONEQUIPMENT.length > 3)//判断机型字符长度是否大于3
			{
				var str1 = OPERATIONEQUIPMENT.substring(0,3)//取机型前3位
				var str2 = OPERATIONEQUIPMENT.substring(1,4)//取机型后3位
				zv_where='Code=="'+str1+'"||Code=="'+str2+'"'
			}
			var Class_Data= localStorage.getItem("Class_Data");
			var ajson = strToJson(Class_Data);
			var Coderes = jsonsql.query("select * from json.data.items where ("+zv_where+") ", ajson);
			for(var f=0; f<Coderes.length; f++)
			{
				standard=Coderes[f].TagName//标准过站时间分钟
			}
			if (OPERATIONEQUIPMENT.length > 3)//判断机型字符长度是否大于3
			{
				var str1 = OPERATIONEQUIPMENT.substring(0,3)//取机型前3位
				var str2 = OPERATIONEQUIPMENT.substring(1,4)//取机型后3位
				zv_where='Code=="'+str1+'"||Code=="'+str2+'"'
			}
			
			if (stood_ground.indexOf("Z") > 0) {
				var stood_time = ceair_Greenwich_time(OPERATIONACTUALSTART)//前站落地时间戳
				ensure_time = stood_time + standard * 60//前站落地时间戳
			}
			else {
				var stood_time = ceair_time(stood_ground)
				stood_time = zv_transdate(stood_time)
				ensure_time = stood_time + standard * 60//前站落地时间戳
			}
			if (ensure_time < planning_departure_time) {
				ensure_time = planning_departure_time
			}
		}
		else {
			ensure_time = planning_departure_time
		}
		var ensure_date = ''
		if (ensure_time != '') {
			ensure_date = zv_detailed(ensure_time)
			ensure_date = ensure_date.substring(11, 16);//截取
		}
		////////////////////////////////目标保障结束
		strx += '<div   id="intelligent_block"  style="display:none; line-height:1.4em; "  onclick="zv_block();">'
		strx += '<div class="ub ub-ac uinn zv_noticebo"  style="background:#f8f8f8;">'
		strx += '<div class="ub-f2  ub ub-ver"  style="width:70%">'
		strx += '<div class=" zv_noticefont1"  style="height:1.6em; line-height:1.6em;">' + OPERATIONNAME + OPERATIONEXTERNALNAME + '</div>'
		strx += '</div>'
		strx += '<div class="ub-f1  tx-r  ulev-1 zv_noticefont3" style="width:30%"><div style="float:left;text-align:right;width:75%">' + date_of + '</div><div style="float:right;width:25%"><img src="images/xia.png"   style="width:0.8em"  ></div></div>'
		strx += '</div>'
		strx += '<div  style="height:0.5em;"></div>'
		strx += '</div>'
		strx += '<div id="intelligent_none" style="display:block;background:#FFF;" >'
		strx += '<div class="uinn1  zv_imc "  onclick="zv_none();">'
		strx += '<ul class=" ub ub-ac lis ulev0" >'
		strx += '<div class="ub-f2  ub ub-ver"  style="width:70%">'
		strx += '<div class=" zv_noticefont1"  style="height:2.6em; line-height:2.6em;">' + OPERATIONNAME + OPERATIONEXTERNALNAME + '</div>'
		strx += '</div>'
		strx += '<div class="ub-f1  tx-r  ulev-1 zv_noticefont3" style="width:30%"><div style="float:left;text-align:right;width:75%">' + date_of + '</div><div style="float:right;width:25%; "><img src="images/shou.png"   style="width:0.8em"  ></div></div>'
		strx += '</ul>'
		strx += '</div>'
		strx += '<div class="ub-ac ub uinn1 umar-t">'
		strx += '<div class="ub ub-ver ub-f1">'
		strx += '<div class="uc-t zv_h1 zv_imcline tx-c ">前站落地</div>'
		strx += '<div class="zv_h1 zv_imcline1 tx-c">' + before_time + '</div>'
		strx += '</div>'
		strx += '<div class="ub ub-ver ub-f1">'
		strx += '<div class="uc-t zv_h1 zv_imcline tx-c ">计划起飞</div>'
		strx += '<div class="zv_h1 zv_imcline1 tx-c">' + time_of + '</div>'
		strx += '</div>'
		strx += '<div class="ub ub-ver ub-f1">'
		strx += '<div class="uc-t zv_h1 zv_imcline tx-c ">预　　离</div>'
		strx += '<div class="zv_h1 zv_imcline1 tx-c">' + pre_time + '</div>'
		strx += '</div>'
		strx += '<div class="ub ub-ver ub-f1">'
		strx += '<div class="uc-t zv_h1 zv_imc tx-c ">目标保障</div>'
		strx += '<div class="zv_h1 zv_imcline1 zv_imcline2 tx-c">' + ensure_date + '</div>'
		strx += '</div>'
		strx += '</div>'
		strx += '<div class="ub-ac ub uinn1 umar-t">'
		strx += '<div class="ub ub-ver ub-f1">'
		strx += '<div class="uc-t zv_h1 zv_imcline tx-c ">航　　段</div>'
		strx += '<div class="zv_h1 zv_imcline1 tx-c">' + codin + '</div>'//
		strx += '</div>'
		strx += '<div class="ub ub-ver ub-f1">'
		strx += '<div class="uc-t zv_h1 zv_imcline tx-c ">机型/机号</div>'
		strx += '<div class="zv_h1 zv_imcline1 tx-c">' + OPERATIONEQUIPMENT + '/' + OPERATIONINTERNALNAME + '</div>'
		strx += '</div>'
		strx += '<div class="ub ub-ver ub-f1">'
		strx += '<div class="uc-t zv_h1 zv_imcline tx-c ">机　　位</div>'
		strx += '<div class="zv_h1 zv_imcline1 zv_imcline2 tx-c">' + STARTLOCATION + '/' + ENDLOCATION + '</div>'
		strx += '</div>'
		strx += '<div class="ub-f1 uc-a tx-c zv_imcline3" style="height:4em; line-height:4em; margin-left:0.1em" ontouchstart="zy_touch()"   onclick="zv_none();">隐藏信息</div>'
		strx += '</div>'
		//时间轴程序开始	
		var actual_takeoff_time = data[0].OPERATIONACTUALEND//航班实际结束时间（实际起飞时间）
		var actual_takeoff_stamp = ''//实际起飞时间戳
		if (actual_takeoff_time != '' && actual_takeoff_time != 'undefined' && actual_takeoff_time != undefined) {
			if (actual_takeoff_time.indexOf("Z") > 0) {
				actual_takeoff_stamp = ceair_Greenwich_time(actual_takeoff_time)//实际起飞时间戳
			}
			else {
				actual_takeoff_stamp = ceair_time(actual_takeoff_time)
				actual_takeoff_stamp = zv_transdate(actual_takeoff_stamp)//实际起飞时间戳
			}
		}
		else {//无实际起飞 计划起飞时间戳
			var take_off_stamp = data[0].OPERATIONPLANNEDEND//航班计划结束时间（计划起飞时间）
			if (take_off_stamp != '' && take_off_stamp != 'undefined' && take_off_stamp != undefined) {
				if (take_off_stamp.indexOf("Z") > 0) {
					actual_takeoff_stamp = ceair_Greenwich_time(take_off_stamp)//计划起飞时间戳
				}
				else {
					actual_takeoff_stamp = ceair_time(take_off_stamp)
					actual_takeoff_stamp = zv_transdate(actual_takeoff_stamp)//计划起飞时间戳
				}
			}
		}
		//qianzhan_time前站落地时间戳
		//ensure_time目标保障时间戳
		//actual_takeoff_stamp实际起飞时间戳
		var Server_time= localStorage.getItem("Server_time");
		var system_time=zv_transdate(Server_time);
		if (system_time > actual_takeoff_stamp) {
			system_time = actual_takeoff_stamp
		}
		var qianzhan_time_date = zv_detailed(qianzhan_time)
		qianzhan_time_date = qianzhan_time_date.substring(11, 16)//前站落地时间
		var ensure_time_date = zv_detailed(ensure_time)
		ensure_time_date = ensure_time_date.substring(11, 16)//目标保障时间
		var system_time_date = zv_detailed(system_time)
		system_time_date = system_time_date.substring(11, 16)//系统时间
		var stood_name = '前站落地'//前站名字
		var ensure_starting = ensure_time - qianzhan_time//计算是否大于三小时
		if (ensure_starting > 10800) {
			stood_name = '保障起始'//前站名字
		}
		if (ensure_time > system_time)//目标保障时间>当前系统时间
		{
			var ensure_name = '当前时间'//中间轴名称
			var current_name = '目标保障'//后端轴名称
			var ensure_name_time = system_time_date//中间轴时间
			var current_name_time = ensure_time_date//后端轴时间
			var time_color = '#f0f000'
			if(system_time>qianzhan_time)
			{
				var percentage1 = system_time - qianzhan_time
				var percentage2 = ensure_time - system_time
				var percentage_total = percentage1 + percentage2
				var percentage1_val = percentage1 / percentage_total * 100//时间轴一
				var percentage2_val = percentage2 / percentage_total * 100//时间轴二	
			}
			else
			{
				var percentage1_val =0//时间轴一
				var percentage2_val = 100//时间轴二	
			}
		}
		else {
			var ensure_name = '目标保障'//中间轴名称
			var current_name = '当前时间'//后端轴名称
			var ensure_name_time = ensure_time_date//中间轴时间
			var current_name_time = system_time_date//后端轴时间
			var time_color = '#ff3e3e'
			var percentage1 = ensure_time - qianzhan_time
			var percentage2 = system_time - ensure_time
			var percentage_total = percentage1 + percentage2
			var percentage1_val = percentage1 / percentage_total * 100//时间轴一
			var percentage2_val = percentage2 / percentage_total * 100//时间轴二
			if(percentage1<=0)
			{
				percentage1_val=0
				percentage2_val=100	
			}
			if(percentage2<=0)
			{
				percentage1_val=100
				percentage2_val=0	
			}
		}
		//时间轴程序结束
		strx += '<div  style=" background:#f2f2f2; height:4em; line-height:4em; margin-top:0.5em;">'
		strx += '<div class="ub-ac ub uinn1" style=" background:#f2f2f2">'
		strx += '<div class="umw2" style="margin-right:0.2em;font-size:0.825em; ">' + stood_name + '</div>'
		strx += '<div class="ub ub-f1">'
		strx += '<div style=" width:100%">'
		strx += '<ul class=" ub ub-ac lis zv_h ulev0" style="position:relative">'
		strx += '<li style=" width:' + percentage1_val + '%; background:#00ff00;height:1em; position:relative ">'
		strx += '<div style="position:absolute;top:1em; right:0px; "><div style="background:url(images/maopao1.png) no-repeat; background-size:100%; padding:0.2em 0.3em 0.2em 0.4em; position:absolute; right:-1.5em; height:1.5em; font-size:0.8em; line-height:1.4em; padding-left:0.2em;"><div style="margin:0.36em 0.3em 0 0.3em">' + ensure_name_time + '</div></div></div>'
		strx += '<div style="position:absolute;top:1em; right:0px; top:-1.5em"><div style="padding:0.2em 0.3em 0.2em 0.4em; position:absolute; right:-2.5em; height:1.5em; line-height:1.4em; padding-left:0.2em;font-size:0.825em; color:#789DE2;width:4.2em ">' + ensure_name + '</div></div>'
		strx += '</li>'
		strx += '<li style=" width:' + percentage2_val + '%; background:' + time_color + ';height:0.8em;"></li>'
		strx += '</ul>'
		strx += '</div>'
		strx += '</div>'
		strx += '<div class="umw2" style="margin-left:0.2em; line-height:1.4em;font-size:0.825em;  ">' + current_name + '</div>'
		strx += '</div>'
		strx += '<div class="ub-ac" style="position:absolute; top:1.4em;font-size:0.825em;width:100%;"><div class=" ub ub-ac uinn1"><div  style=" width:50%;">' + qianzhan_time_date + '</div><div  style=" width:50%;text-align:right">' + current_name_time + '</div></div></div>'
		strx += '</div>'
		strx += '<div style="background:#FFF; height:0.5em"></div>'
		strx += '</div>'
		$$('intelligent_monitoring').innerHTML = strx;
//		$.getJSON("http://mpservice.ceair.com/DATA/Category.json", function(json){
//			 	var none = jsonsql.query("select * from json.data.items where (PID=='145') order by OrderBy asc", json);
//				for (var z = 0; z < none.length; z++) {
//					$$(none[z].Icon).innerHTML = '';//所有小图标先隐藏
//				}
//		})
		$$("ban_zu_zhuang_xie.png").innerHTML = '';$$("qian_yin_che.png").innerHTML = '';$$("ji_dong_zhuang_xie.png").innerHTML = '';$$("qi_ta.png").innerHTML = '';$$("sheng_jiang_che_ren_wu.png").innerHTML = '';$$("chuan_song_che_ren_wu.png").innerHTML = '';$$("sheng_jiang_che.png").innerHTML = '';$$("chuan_song_che.png").innerHTML = '';$$("deng_ji_si_pai.png").innerHTML = '';$$("deng_ji_kong_zhi.png").innerHTML = '';$$("deng_ji_kou.png").innerHTML = '';$$("pei_pin_che.png").innerHTML = '';$$("qing_shui_che.png").innerHTML = '';$$("diao_du_che.png").innerHTML = '';$$("wu_shui_che.png").innerHTML = '';$$("can_ji_che.png").innerHTML = '';$$("ke_ti_che.png").innerHTML = '';$$("la_ji_che.png").innerHTML = '';$$("qing_jie_ban_zu.png").innerHTML = '';$$("hang_ban_jian_kong.png").innerHTML = '';$$("fen_xie.png").innerHTML = '';$$("fen_jian.png").innerHTML = '';$$("deng_ji.png").innerHTML = '';$$("jie_ji.png").innerHTML = '';$$("te_fu.png").innerHTML = '';$$("zhong_zhuan.png").innerHTML = '';$$("gui_bin.png").innerHTML = '';$$("te_shu_fu_wu.png").innerHTML = '';$$("lv_ke_che_liang.png").innerHTML = '';$$("bai_du_che.png").innerHTML = '';$$("qing_jie_che.png").innerHTML = '';$$("bao_kan_che.png").innerHTML = '';$$("song_ji.png").innerHTML = '';$$("VIP_che_liang.png").innerHTML = '';$$("guan_ke_cang_men.png").innerHTML = '';$$("guan_huo_cang_min.png").innerHTML = '';$$("tui_chu_shi_jian.png").innerHTML = '';$$("you_liao_zuo_yie_kai_shi.png").innerHTML = '';$$("huo_wu_dao_wei_shi_jian.png").innerHTML = '';$$("pei_liao_zuo_yie_kai_shi.png").innerHTML = '';
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////小图标	
			var flightHeight = document.getElementById("flight").offsetHeight;//飞机高度
	        var flightWidth = document.getElementById("flight").offsetWidth;//飞机宽度
	        var flighticoHeight = flightWidth / 9 * 10 + "px"//ico总高度
	        document.getElementById("ico_height").style.height = flighticoHeight;//ico总高度
	        var flighticobg = flightWidth / 9 * 0.9//外背景宽高
	        var flighticobg_in = flighticobg - 2//外背景宽高
	        var flighticobg2 = flighticobg_in * 0.6//内背景宽高
	        var flighticobg3 = flighticobg_in - flighticobg2//内背景间距
	        flighticobg3 = flighticobg3/2-1//内背景间距
	         var ico_style = 'style="width:' + flighticobg + 'px; height:' + flighticobg + 'px;line-height:' + flighticobg + 'px; text-align:center;border: 1px  solid #CCC;"' //外背景宽度高度
	        var ico_style_in = 'style="width:' + flighticobg_in + 'px; height:' + flighticobg_in + 'px;line-height:' + flighticobg_in + 'px;text-align:center; border: 1px  solid #FFF;position:relative; "' //外背景样式
	        var ico_style_nei = 'style="width:' + flighticobg2 + 'px; height:' + flighticobg2 + 'px;line-height:' + flighticobg2 + 'px; text-align:center;border: 1px  solid #CCC;background-color:#e8e8e8; margin:' + flighticobg3 + 'px;position:absolute;"'//内背景宽度高度
		for (var z = 0; z < data.length; z++) {
			var TASKNAME = data[z].TASKNAME
			var SUBTASKNAME= data[z].SUBTASKNAME//航班监控子任务
			if (TASKNAME != '') 
			{
				var Class_Data=localStorage.getItem("Class_Data")
			    var json = strToJson(Class_Data);
//////////////////////////////////////////////////////////////////////////小图标///////////////////////////////////////////////////////////////////////////////////
				var SiteName =localStorage.getItem("SiteName");
				var zv_LocalTask = localStorage.getItem("zv_LocalTask");
				//alert("select * from json.data.items where (Name=='"+TASKNAME+"' && Code=='"+SiteName+"' ) order by OrderBy asc")
				var ico_pid=238
				if(TASKNAME=='班组装卸（集）'||TASKNAME=='班组装卸（深）'||TASKNAME=='班组装卸（浅）'||TASKNAME=='班组 装（集）'||TASKNAME=='班组 装（深）'||TASKNAME=='班组 装（浅）'||TASKNAME=='班组 卸（集）'||TASKNAME=='班组 卸（深）'||TASKNAME=='班组 卸（浅）')//班组
				{
					ico_pid=211
				}
				if(TASKNAME=='航后清洁'||TASKNAME=='过站清洁'||TASKNAME=='出港清洁')//清洁班组
				{
					ico_pid=337
				}
				if(TASKNAME=='登机'&&SiteName=='SHAACC')//虹桥 登机
				{
					ico_pid=387
				}
				if(SiteName=='PVGHCC')//浦东任务
				{
						if(TASKNAME=='登机控制（靠桥）'||TASKNAME=='登机控制（不靠桥）')//登机控制
						{
							ico_pid=311
						}
				}
				if(zv_LocalTask==null||zv_LocalTask=='null'||zv_LocalTask=='')
				{
					zv_LocalTask='?'
				}
				var jiankong=''
				if(TASKNAME=='航班监控'&&zv_LocalTask.indexOf(365) > -1)
				{
					jiankong='1'
				}
				if(TASKNAME=='航班监控')
				{
					if(SUBTASKNAME=='货物到位时间')
					{
						var res = jsonsql.query("select * from json.data.items where (Name=='"+SUBTASKNAME+"') order by OrderBy asc", json);
						ico_pid=res[0].ID
					}
					else if(SUBTASKNAME=='油料作业开始')
					{
						var res = jsonsql.query("select * from json.data.items where (Name=='油料作业') order by OrderBy asc", json);
						ico_pid=res[0].ID
					}
					else if(SUBTASKNAME=='配餐作业开始')
					{
						var res = jsonsql.query("select * from json.data.items where (Name=='配餐作业') order by OrderBy asc", json);
						ico_pid=res[0].ID
					}
					else//隐藏不显示图标
					{
						ico_pid="987654321"
						jiankong='2'
					}
				}
	/////////////////////下边是小图标显示	
				if(zv_LocalTask.indexOf(ico_pid)> -1||jiankong=='1'){
						var res = jsonsql.query("select * from json.data.items where (ID=='"+ico_pid+"') order by OrderBy asc", json);//查询任务
						var ico_class=''//外圆
						var Icon=res[0].Icon//图标ID,图片
						var ico_bg='ico_bg4'
						var TASKSCHEDULEDEND=	data[z].TASKSCHEDULEDEND//整个任务任务预计结束时间
						var TASKSCHEDULEDEND_stamp=''//整个任务任务预计结束时间时间戳
						var TASKSCHEDULEDEND_time=''//整个任务任务预计结束时间北京时间
						if (TASKSCHEDULEDEND != '' && TASKSCHEDULEDEND != 'undefined' && TASKSCHEDULEDEND != undefined) {
							if (TASKSCHEDULEDEND.indexOf("Z") > 0) {
								TASKSCHEDULEDEND_stamp = ceair_Greenwich_time(TASKSCHEDULEDEND)
								TASKSCHEDULEDEND_time = zv_detailed(TASKSCHEDULEDEND_stamp)
								TASKSCHEDULEDEND_time = TASKSCHEDULEDEND_time.substring(11, 19);//截取
							}
							else {
								TASKSCHEDULEDEND_stamp = ceair_time(TASKSCHEDULEDEND)
								TASKSCHEDULEDEND_stamp = zv_transdate(TASKSCHEDULEDEND_stamp)
							}
						}
						var ACTUALSTART=	data[z].ACTUALSTART//整个任务(实际)开始时间
						var ACTUALSTART_stamp=''//整个任务(实际)开始时间时间戳
						var ACTUALSTART_time=''//整个任务(实际)开始时间北京时间
						if (ACTUALSTART != '' && ACTUALSTART != 'undefined' && ACTUALSTART != undefined) {
							if (ACTUALSTART.indexOf("Z") > 0) {
								ACTUALSTART_stamp = ceair_Greenwich_time(ACTUALSTART)
								ACTUALSTART_time = zv_detailed(ACTUALSTART_stamp)
								ACTUALSTART_time = ACTUALSTART_time.substring(11, 19);//截取
							}
							else {
								ACTUALSTART_stamp = ceair_time(ACTUALSTART)
								ACTUALSTART_stamp = zv_transdate(ACTUALSTART_stamp)
							}
						}
						var ACTUALEND=	data[z].ACTUALEND//整个任务(实际)结束时间
						var ACTUALEND_stamp=''//整个任务(实际)结束时间时间戳
						var ACTUALEND_time=''//整个任务(实际)结束时间北京时间
						if (ACTUALEND != '' && ACTUALEND != 'undefined' && ACTUALEND != undefined) {
							if (ACTUALEND.indexOf("Z") > 0) {
								ACTUALEND_stamp = ceair_Greenwich_time(ACTUALEND)
								ACTUALEND_time = zv_detailed(ACTUALEND_stamp)
								ACTUALEND_time = ACTUALEND_time.substring(11, 19);//截取
							}
							else {
								ACTUALEND_stamp = ceair_time(ACTUALEND)
								ACTUALEND_stamp = zv_transdate(ACTUALEND_stamp)
							}
						}
						var TASKSCHEDULEDSTART=	data[z].TASKSCHEDULEDSTART//整个任务任务预计开始时间
						var TASKSCHEDULEDSTART_stamp=''//整个任务任务预计开始时间时间戳
						var TASKSCHEDULEDSTART_time=''//整个任务任务预计开始时间北京时间
						if(TASKSCHEDULEDSTART=='' ||TASKSCHEDULEDSTART == 'undefined' || TASKSCHEDULEDSTART == undefined )
						{
							ico_class = ' ico_radius' //外圆
						}
					var Server_time= localStorage.getItem("Server_time");
					var system_time=zv_transdate(Server_time);
					system_time=system_time+5*60
					if(ACTUALSTART_stamp!=''&&ACTUALEND_stamp!='' && ACTUALEND_stamp<=TASKSCHEDULEDEND_stamp)
					{
						ico_bg=' ico_bg1' 
					}
					else if(ACTUALSTART_stamp!=''&&ACTUALEND_stamp=='' && system_time<=TASKSCHEDULEDEND_stamp)
					{
						ico_bg=' ico_bg2' 
					}
					else if((ACTUALSTART_stamp=='' &&system_time>=TASKSCHEDULEDSTART_stamp)||(ACTUALSTART_stamp!='' &&system_time>=TASKSCHEDULEDEND_stamp))
					{
						ico_bg=' ico_bg3' 
					}
					else
					{
						ico_bg='ico_bg4'
					}
					if(Icon!='')
					{
						var  class_i='0'
						if(res[0].TagName!=''&&res[0].TagName!=null&&res[0].TagName!='undefined'&&res[0].TagName!=undefined)
						{
							class_i='1';
						}
						if (TASKNAME == '航班监控') {
							$$(Icon).innerHTML = '<div  onclick="flight_control(\'' + SUBTASKNAME + '\')" class="ico_border' + ico_class + '" ' + ico_style + '><div  class="' + ico_bg + ico_class + '" ' + ico_style_in + '><div  ' + ico_style_nei + ' ><img src="taskImg/' + Icon + '" width="100%"></div></div></div>';
						}
						else
						{
							$$(Icon).innerHTML = '<div  onclick="DialogBox(1,\'' + ico_pid + '\',' + class_i + ')" class="ico_border' + ico_class + '" ' + ico_style + '><div  class="' + ico_bg + ico_class + '" ' + ico_style_in + '><div  ' + ico_style_nei + ' ><img src="taskImg/' + Icon + '" width="100%"></div></div></div>';	
						}
					}
				}
//////////////////////////////////////////////////////////////////////////小图标//////////////////////////////////////////////////////////////////////////////////				
		
			}
		}
/////////////////////////////////////////////////////////////////////////后加任务////////////////////////////////////////////////////////////////////////////////		
		var add_pid="797|798|799" //关客舱门,关货舱门,推出时间
		var add_pid_data = add_pid.split("|");
		var mubiao_date = zv_detailed(ensure_time)//目标保障时间/计划时间
		var shiji_data=''//实际时间
		var jsonmodels_data=localStorage.getItem("jsonmodels_list");//线保接口无返回数据会出现错误
		var jsonmodelsdata = strToJson(jsonmodels_data)
		var dataList=jsonmodelsdata[0].dataList
		if(dataList.length<=0)
		{
			var guancang_time=''
		}
		else
		{
			var guancang_time=dataList[0].CAB_CLOSE_TIME//关舱门时间
			if(guancang_time!='' &&guancang_time!=undefined&&guancang_time!='undefined')
			{
			guancang_time=guancang_time.split(" ");
			guancang_time=guancang_time[1]		
			}
			
		}
		for (var a = 0; a < add_pid_data.length; a++) {
			var ico_pid = add_pid_data[a]
			if(zv_LocalTask==null||zv_LocalTask=='null'||zv_LocalTask=='')
			{
				zv_LocalTask='?'
			}
			if(zv_LocalTask.indexOf(ico_pid) > -1) {
					var res = jsonsql.query("select * from json.data.items where (ID=='"+ico_pid+"') order by OrderBy asc", json);//查询任务
					var ico_class=''//外圆
					var Icon=res[0].Icon//图标ID,图片
					var ico_bg='ico_bg4'
					if(Icon!='')
					{
						var ico_bg=' ico_bg1' 
						if(ico_pid==799)
						{
						    var renwu_name='推出时间';
							
							if(dataList.length<=0)
							{
								guancang_time=''
							}
							else
							{
								guancang_time=dataList[0].CAB_CLOSE_TIME//推出
								if(guancang_time!='' &&guancang_time!=undefined&&guancang_time!='undefined')
								{
								guancang_time=guancang_time.split(" ");
								guancang_time=guancang_time[1]		
								}
							}
							var mubiao_time=zv_transdate(mubiao_date)
							mubiao_time=mubiao_time+300
							mubiao_time=zv_detailed(mubiao_time)
							mubiao_time=mubiao_time.split(" ");
							mubiao_time=mubiao_time[1]
						}
						else if(ico_pid==798)
						{
							var renwu_name='关货舱门';
							mubiao_time=mubiao_date.split(" ");
							mubiao_time=mubiao_time[1]
						}
						else
						{
							var renwu_name='关客舱门';
							mubiao_time=mubiao_date.split(" ");
							mubiao_time=mubiao_time[1]
						}
						$$(Icon).innerHTML = '<div  class="ico_border" '+ ico_style +' onclick="renwu_after(\''+renwu_name+'\',\''+mubiao_time+'\',\''+guancang_time+'\')" ><div  class="'+ico_bg+'"'+ ico_style_in+'><div  '+ ico_style_nei+' ><img src="taskImg/'+Icon+'" width="100%"></div></div></div>';
					}
			}				
		}
/////////////////////////////////////////////////////////////////////////后加任务////////////////////////////////////////////////////////////////////////////////		
		Loading(-1);
     }		 
        function getDefaultIcon(){
				var Class_Data=localStorage.getItem("Class_Data")
			    var json = strToJson(Class_Data);
                var res = jsonsql.query("select * from json.data.items where (PID=='145' && IsDisable=='0') order by OrderBy asc", json);
                var str = "";
                for (var i = 0; i < res.length; i++) {
                    str += res[i].ID + ",";
                }
                //str = str.substring(0, (str.length - 1));
                var strx = "";
                if (str != "") {
                    var strx = "," + str;
                }
                var zv_LocalTask = localStorage.getItem("zv_LocalTask");
                if (zv_LocalTask == null || zv_LocalTask == undefined || zv_LocalTask == "") {
                    localStorage.setItem("zv_LocalTask", strx);
                }
				intelligent_monitoring()
                addIcon();
				
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////小图标			
        }
        function addIcon(){
            $$("taskList").innerHTML = "";
			 var str = "";
            str += '<div class="icon" onclick=openNewWin("intelligent_monitoring_task","intelligent_monitoring_task.html")><div class="listicon">';
            str += '<div><img src="images/add1.png"></div>';
            str += '<div class="txt">选择</div>';
            str += '</div></div>';
            $$("taskList").innerHTML = str;
            var zv_LocalTask = localStorage.getItem("zv_LocalTask");
            if (zv_LocalTask == null || zv_LocalTask == undefined || zv_LocalTask == "" || zv_LocalTask == ",") {
                zv_LocalTask = "";
                //加载默认的监控图标
            }
            else {
                zv_LocalTask = zv_LocalTask.split(",");
                var j = 0;
                var str1 = "";
                for (var i = 0; i < zv_LocalTask.length; i++) {
                    if (zv_LocalTask[i] != "") {
                        j++;
                        getIconList(zv_LocalTask[i]);
                        if (j == 9) {
                            break;
                        }
                    }
                }
            }
           
        }
        function getIconList(ID){
				var Class_Data=localStorage.getItem("Class_Data")
			    var json = strToJson(Class_Data);
                var res = jsonsql.query("select * from json.data.items where (ID=='" + ID + "' && PID=='145') order by OrderBy asc", json);
                var str = "";
                var zv_LocalTask = localStorage.getItem("zv_LocalTask");
                if (zv_LocalTask == null || zv_LocalTask == undefined || zv_LocalTask == "") {
                    zv_LocalTask = "";
                }
                for (var i = 0; i < res.length; i++) {
                    var isSelected = "";
                    if (zv_LocalTask.indexOf("," + res[i].ID + ",") >= 0) {
                        isSelected = "selected";
                    }
                    str += '<div class="icon"><div class="listicon">';
                    str += '<div><img src="taskImg/' + res[i].Icon + '"></div>';
                    str += '<div class="txt">' + res[i].Name + '</div>';
                    str += '</div></div>';
                }
                $$("taskList").innerHTML += str;
               
        }
        function AreasScore(){
			IC.talkingDataCount("智能监控","0019");
            document.getElementById("AreaS").style.display = "block";
        }
        function AreaClose(){
			IC.talkingDataCount("智能监控","0019");
            document.getElementById("AreaS").style.display = "none";
        }
		
		function zv_block(){
			document.getElementById('intelligent_none' ).style.display = 'block'
			document.getElementById('intelligent_block').style.display = 'none'
		}
		function zv_none(){
			document.getElementById('intelligent_block').style.display = 'block'
			document.getElementById('intelligent_none').style.display = 'none'
		}
        
        function IconAdd(){
            uexWindow.open("intelligent_monitoring_view_addicon", 0, "intelligent_monitoring_view_addicon.html", 0, "", "", 0);
        }
function renwu_after(renwu_name, mubiao_time, guancang_time){
	IC.talkingDataCount("智能监控","0019");
	var str = "";
	str += '<div id="coverDiv">';
	str += '</div>';
	str += '<div id="dialogboxout">';
	str += '<div id="dialogbox">';
	str += '<div id="dialogboxtitleout">';
	str += '<div id="dialogboxtitle">';
	str += '<span>任务信息</span>';
	str += '<span><img src="images/close.png" id="dialogboxclose" onclick="DialogBox_x()" style="width:1.8em;"></span>';
	str += '</div>';
	str += '</div>';
	str += '<div id="dialogcontent">'
	str += '<table width=101% border=0 cellspacing=1 cellpadding=0 bgcolor=#FFF>'
	str += '<tr>'
	str += '<td colspan=2 align=center><table width=100% border=0 cellspacing=0 cellpadding=0 class=round>'
	str += '<tr>'
	str += '<td align=left class=zv_padding>' + renwu_name + '</td>'
	str += '</tr>'
	str += '</table></td>'
	str += '</tr>'
	str += '<tr>'
	str += '<td width=34% class=zv_bg1></td>'
	str += '<td align=center class=zv_bg1>完成时间</td>'
	str += '</tr>'
	str += '<tr>'
	str += '<td class=zv_bg1>计划时间</td>'
	str += '<td align=center class=zv_bg2>' + mubiao_time + '</td>'
	str += '</tr>'
	str += '<tr>'
	str += '<td align=center bgcolor=#E2E8EF>实际时间</td>'
	str += '<td align=center class=zv_bg2>' + guancang_time + '</td>'
	str += '</tr>'
	str += '</table></div>';
	str += '</div>';
	str += '</div>';
	$$("DialogBox_html").innerHTML = str;
	document.getElementById("coverDiv").style.display = "block";
    document.body.style.overflow = "hidden"
    document.getElementById("dialogboxout").style.display = "block";
}		
function flight_control(renwu_name){//航班监控
		IC.talkingDataCount("智能监控","0019");
		var flight_time = localStorage.getItem("flight_time");
		var jsonstr = localStorage.getItem("zvData");
		jsonstr = jsonstr.replace('{"DataTable":', '{"items":'); //字符替换 
		jsonstr = "{\"data\": " + jsonstr + "}";
		var strx = ''
		var json = strToJson(jsonstr);
		var strs = flight_time.split("|");
		var strs1 = strs[0]
		var strs2 = strs[1]
		var str = "";
		var data = jsonsql.query("select * from json.data.items where (OPERATIONNAME=='" + strs1 + "' && OPERATIONPLANNEDEND=='" + strs2 + "' && SUBTASKNAME=='"+renwu_name+"')", json);
		for (var s = 0; s < data.length; s++) {
			////////////////////////////////目标保障开始
			var OPERATIONEQUIPMENT = data[s].OPERATIONEQUIPMENT//机型
			var stood_ground = data[s].OPERATIONACTUALSTART//航班实际开始时间（前站落地时间）
			var OPERATIONACTUALSTART = data[s].OPERATIONACTUALSTART//航班实际开始时间（前站落地时间）
			var ensure_time = ''//目标保障时间戳
			var plan_time = data[s].OPERATIONPLANNEDEND//航班计划结束时间（计划起飞时间）
			var planning_departure_time = ''
			if (plan_time != '' && plan_time != 'undefined' && plan_time != undefined) {
				if (plan_time.indexOf("Z") > 0) {
					planning_departure_time = ceair_Greenwich_time(plan_time)//计划起飞时间戳
				}
				else {
					planning_departure_time = ceair_time(planning_departure_time)
					planning_departure_time = zv_transdate(planning_departure_time)//计划起飞时间戳
				}
			}
			if (stood_ground != '' && stood_ground != 'undefined' && stood_ground != undefined)//航班实际开始时间（前站落地时间）
			{
				var standard = '60'//标准过站时间分钟
				var zv_where='Code=="'+OPERATIONEQUIPMENT+'"'
				if (OPERATIONEQUIPMENT.length> 3)//判断机型字符长度是否大于3
				{
					var str1 = OPERATIONEQUIPMENT.substring(0,3)//取机型前3位
					var str2 = OPERATIONEQUIPMENT.substring(1,4)//取机型后3位
					zv_where='Code=="'+str1+'"||Code=="'+str2+'"'
				}
				var Class_Data=localStorage.getItem("Class_Data");
				var ajson = strToJson(Class_Data);
				var Coderes = jsonsql.query("select * from json.data.items where ("+zv_where+") ", ajson);
				for(var f=0; f<Coderes.length; f++)
				{
					standard=Coderes[f].TagName//标准过站时间分钟
				}
				if (stood_ground.indexOf("Z") > 0) {
					var stood_time = ceair_Greenwich_time(OPERATIONACTUALSTART)//前站落地时间戳
					ensure_time = stood_time + standard * 60//前站落地时间戳
				}
				else {
					var stood_time = ceair_time(stood_ground)
					stood_time = zv_transdate(stood_time)
					ensure_time = stood_time + standard * 60//前站落地时间戳
				}
				if (ensure_time < planning_departure_time) {
					ensure_time = planning_departure_time
				}
			}
			else {
				ensure_time = planning_departure_time
			}
		////////////////////////////////目标保障结束
		var jihua_kaishi=ensure_time-4500//计划开始
		
		jihua_kaishi = zv_detailed(jihua_kaishi)
		jihua_kaishi = jihua_kaishi.substring(11, 16);//截取
		var jihua_jiesu=ensure_time-2700//计划结束
		jihua_jiesu = zv_detailed(jihua_jiesu)
		jihua_jiesu = jihua_jiesu.substring(11, 16);//截取
		var shiji_time=data[s].SIGNOFFTIMESTAMP//实际时间
		if(shiji_time!=''&&shiji_time!=undefined&&shiji_time!='undefined'&&shiji_time!='null')
		{
			shiji_time = ceair_Greenwich_time(shiji_time)
			shiji_time = zv_detailed(shiji_time)
			shiji_time = shiji_time.substring(11, 16);//截取
		}
		var class_name='实际时间'
		var strx=''
		if(renwu_name=='油料作业开始'||renwu_name=='配餐作业开始')
		{
			if(renwu_name=='油料作业开始')
			{
				var jiankong_renwu_name='加油';
				var data_end = jsonsql.query("select * from json.data.items where (OPERATIONNAME=='" + strs1 + "' && OPERATIONPLANNEDEND=='" + strs2 + "' && SUBTASKNAME=='油料作业结束')", json);
			}
			else
			{
				var jiankong_renwu_name='配餐';
				var data_end = jsonsql.query("select * from json.data.items where (OPERATIONNAME=='" + strs1 + "' && OPERATIONPLANNEDEND=='" + strs2 + "' && SUBTASKNAME=='配餐作业结束')", json);
			}
			var	end_sj_time=data_end[0].SIGNOFFTIMESTAMP//实际结束时间
			if(end_sj_time!=''&&end_sj_time!=end_sj_time&&end_sj_time!='undefined'&&end_sj_time!='null')
			{
			end_sj_time = ceair_Greenwich_time(end_sj_time)
			end_sj_time = zv_detailed(end_sj_time)
			end_sj_time = end_sj_time.substring(11, 16);//截取
			}
			else
			{
				end_sj_time=''
			}
			strx += '<table width=101% border=0 cellspacing=1 cellpadding=0 bgcolor=#FFF>'
			strx += '<tr>'
			strx += '<td colspan=3 align=center><table width=100% border=0 cellspacing=0 cellpadding=0 class=round>'
			strx += '<tr>'
			strx += '<td width=34% align=center class=zv_padding>' + data[s].RESOURCENAME + '</td>'
			strx += '<td align=left class=zv_padding>'+jiankong_renwu_name+'</td>'
			strx += '</tr>'
			strx += '</table></td>'
			strx += '</tr>'
			strx += '<tr>'
			strx += '<td width=34% class=zv_bg1></td>'
			strx += '<td width=33% class=zv_bg1>开始时间</td>'
			strx += '<td width=33% class=zv_bg1><p >结束时间</p></td>'
			strx += '</tr>'
			strx += '<tr>'
			strx += '<td align="center" class=zv_bg1>计划时间</td>'
			strx += '<td class=zv_bg2>' + jihua_kaishi + '</td>'
			strx += '<td class=zv_bg2>' + jihua_jiesu + '</td>'
			strx += '</tr>'
			strx += '<tr>'
			strx += '<td align=center bgcolor=#E2E8EF>实际时间</td>'
			strx += '<td class=zv_bg2>' + shiji_time + '</td>'
			strx += '<td class=zv_bg2>' +end_sj_time  + '</td>'
			strx += '</tr>'
			strx += '</table>'
		}
		else
		{
			strx += '<table width=101% border=0 cellspacing=1 cellpadding=0 bgcolor=#FFF>'
			strx += '<tr>'
			strx += '<td colspan=2 align=center><table width=100% border=0 cellspacing=0 cellpadding=0 class=round>'
			strx += '<tr>'
			strx += '<td width=34% align=center class=zv_padding>' + data[s].RESOURCENAME + '</td>'
			strx += '<td align=left class=zv_padding>'+renwu_name+'</td>'
			strx += '</tr>'
			strx += '</table></td>'
			strx += '</tr>'
			strx += '<tr>'
			strx += '<td width=34%  class=zv_bg1>计划时间</td>'
			strx += '<td align=center class=zv_bg2>' + jihua_kaishi + '</td>'
			strx += '</tr>'
			strx += '<tr>'
			strx += '<td align=center bgcolor=#E2E8EF>计划结束</td>'
			strx += '<td align=center class=zv_bg2>' + jihua_jiesu + '</td>'
			strx += '</tr>'
			strx += '<td align=center bgcolor=#E2E8EF>到位时间</td>'
			strx += '<td align=center class=zv_bg2>' + shiji_time + '</td>'
			strx += '</tr>'
			strx += '</table>'	
		}
		
	str += '<div id="coverDiv">';
	str += '</div>';
	str += '<div id="dialogboxout">';
	str += '<div id="dialogbox">';
	str += '<div id="dialogboxtitleout">';
	str += '<div id="dialogboxtitle">';
	str += '<span>任务信息</span>';
	str += '<span><img src="images/close.png" id="dialogboxclose" onclick="DialogBox_x()" style="width:1.8em;"></span>';
	str += '</div>';
	str += '</div>';
	str += '<div id="dialogcontent">'
	str +=strx;
	str+='</div>';
	str += '</div>';
	str += '</div>';
	}	
	$$("DialogBox_html").innerHTML = str;
	document.getElementById("coverDiv").style.display = "block";
    document.body.style.overflow = "hidden"
    document.getElementById("dialogboxout").style.display = "block";
}		
function DialogBox(type, content, class_i){
	IC.talkingDataCount("智能监控","0019");
localStorage.setItem("DialogBox_type",type)
localStorage.setItem("DialogBox_content",content)
localStorage.setItem("DialogBox_class_i",class_i)
	Loading(0);
	var Class_Data=localStorage.getItem("Class_Data")
	var ico_json=strToJson(Class_Data);
	if (class_i == 1) {
		var flight_time = localStorage.getItem("flight_time");
		var jsonstr = localStorage.getItem("zvData");
		jsonstr = jsonstr.replace('{"DataTable":', '{"items":'); //字符替换 
		jsonstr = "{\"data\": " + jsonstr + "}";
		var strx = ''
		var json = strToJson(jsonstr);
		var strs = flight_time.split("|");
		var strs1 = strs[0]
		var strs2 = strs[1]
		var stax = ''
		var data = jsonsql.query("select * from json.data.items where (OPERATIONNAME=='" + strs1 + "' && OPERATIONPLANNEDEND=='" + strs2 + "')", json);
		var ico_all = new Array();
		for (var c = 0; c < data.length; c++) {
			ico_all[c] = data[c].TASKNAME+"?"//加问号是为了防止包含的字符串给去除掉
		}
		var ico_all = ico_all.reverse().join(",").match(/([^,]+)(?!.*\1)/ig).reverse();//去重复
		//ico_all=ico_all.replace(/\?/g,'') 
		var stax = ''
		for (var s = 0; s < ico_all.length; s++) {
			var ico_conditions = ico_all[s];//条件
			ico_conditions=ico_conditions.replace("?",'')
			var SiteName = localStorage.getItem("SiteName");
			var type=""
			var ico_pid=238
				if(ico_conditions=='班组装卸（集）'||ico_conditions=='班组装卸（深）'||ico_conditions=='班组装卸（浅）'||ico_conditions=='班组 装（集）'||ico_conditions=='班组 装（深）'||ico_conditions=='班组 装（浅）'||ico_conditions=='班组 卸（集）'||ico_conditions=='班组 卸（深）'||ico_conditions=='班组 卸（浅）')//班组
				{
					ico_pid=211
				}
				if(ico_conditions=='航后清洁'||ico_conditions=='过站清洁'||ico_conditions=='出港清洁')//清洁班组
				{
					ico_pid=337
				}
				if(ico_conditions=='登机'&&SiteName=='SHAACC')//虹桥 登机
				{
					ico_pid=387
				}
				if(SiteName=='PVGHCC')//浦东任务
				{
						if(ico_conditions=='登机控制（靠桥）'||ico_conditions=='登机控制（不靠桥）')//登机控制
						{
							ico_pid=311
						}
				}
			if (content== ico_pid) {
				var data = jsonsql.query("select * from json.data.items where (TASKNAME=='" + ico_conditions + "'  &&  OPERATIONNAME=='" + strs1 + "' && OPERATIONPLANNEDEND=='" + strs2 + "')", json);
				var manager_grade_Site = localStorage.getItem("manager_grade_Site");//登录人site
				var SiteName_val = localStorage.getItem("SiteName");//查询site
				var score_user_id = localStorage.getItem("score_user_id");//权限	
				if (score_user_id.indexOf(7) > -1 || score_user_id.indexOf(4) > -1)//部领导，部门领导
				{
					for (var z = 0; z < data.length; z++) {
						var OPERATIONNAME = data[z].OPERATIONNAME//进港航班
						var OPERATIONEXTERNALNAME = data[z].OPERATIONEXTERNALNAME//出港航班
						var TASKSCHEDULEDEND = data[z].TASKSCHEDULEDEND//整个任务任务预计结束时间
						var TASKSCHEDULEDEND_stamp = ''//整个任务任务预计结束时间时间戳
						var TASKSCHEDULEDEND_time = ''//整个任务任务预计结束时间北京时间
						if (TASKSCHEDULEDEND != '' && TASKSCHEDULEDEND != 'undefined' && TASKSCHEDULEDEND != undefined) {
							if (TASKSCHEDULEDEND.indexOf("Z") > 0) {
								TASKSCHEDULEDEND_stamp = ceair_Greenwich_time(TASKSCHEDULEDEND)
								TASKSCHEDULEDEND_time = zv_detailed(TASKSCHEDULEDEND_stamp)
								TASKSCHEDULEDEND_time = TASKSCHEDULEDEND_time.substring(11, 19);//截取
							}
							else {
								TASKSCHEDULEDEND_stamp = ceair_time(TASKSCHEDULEDEND)
								TASKSCHEDULEDEND_stamp = zv_transdate(TASKSCHEDULEDEND_stamp)
							}
						}
						var ACTUALSTART = data[z].ACTUALSTART//整个任务(实际)开始时间
						var ACTUALSTART_stamp = ''//整个任务(实际)开始时间时间戳
						var ACTUALSTART_time = ''//整个任务(实际)开始时间北京时间
						if (ACTUALSTART != '' && ACTUALSTART != 'undefined' && ACTUALSTART != undefined) {
							if (ACTUALSTART.indexOf("Z") > 0) {
								ACTUALSTART_stamp = ceair_Greenwich_time(ACTUALSTART)
								ACTUALSTART_time = zv_detailed(ACTUALSTART_stamp)
								ACTUALSTART_time = ACTUALSTART_time.substring(11, 19);//截取
							}
							else {
								ACTUALSTART_stamp = ceair_time(ACTUALSTART)
								ACTUALSTART_stamp = zv_transdate(ACTUALSTART_stamp)
							}
						}
						var ACTUALEND = data[z].ACTUALEND//整个任务(实际)结束时间
						var ACTUALEND_stamp = ''//整个任务(实际)结束时间时间戳
						var ACTUALEND_time = ''//整个任务(实际)结束时间北京时间
						if (ACTUALEND != '' && ACTUALEND != 'undefined' && ACTUALEND != undefined) {
							if (ACTUALEND.indexOf("Z") > 0) {
								ACTUALEND_stamp = ceair_Greenwich_time(ACTUALEND)
								ACTUALEND_time = zv_detailed(ACTUALEND_stamp)
								ACTUALEND_time = ACTUALEND_time.substring(11, 19);//截取
							}
							else {
								ACTUALEND_stamp = ceair_time(ACTUALEND)
								ACTUALEND_stamp = zv_transdate(ACTUALEND_stamp)
							}
						}
						var TASKSCHEDULEDSTART = data[z].TASKSCHEDULEDSTART//整个任务任务预计开始时间
						var TASKSCHEDULEDSTART_stamp = ''//整个任务任务预计开始时间时间戳
						var TASKSCHEDULEDSTART_time = ''//整个任务任务预计开始时间北京时间
						if (TASKSCHEDULEDSTART != '' && TASKSCHEDULEDSTART != 'undefined' && TASKSCHEDULEDSTART != undefined) {
							if (TASKSCHEDULEDSTART.indexOf("Z") > 0) {
								TASKSCHEDULEDSTART_stamp = ceair_Greenwich_time(TASKSCHEDULEDSTART)
								TASKSCHEDULEDSTART_time = zv_detailed(TASKSCHEDULEDSTART_stamp)
								TASKSCHEDULEDSTART_time = TASKSCHEDULEDSTART_time.substring(11, 19);//截取
							}
							else {
								TASKSCHEDULEDSTART_stamp = ceair_time(TASKSCHEDULEDSTART)
								TASKSCHEDULEDSTART_stamp = zv_transdate(TASKSCHEDULEDSTART_stamp)
							}
							stax += '<table width=101% border=0 cellspacing=1 cellpadding=0 bgcolor=#FFF>'
							stax += '<tr>'
							stax += '<td colspan=3 align=center><table width=100% border=0 cellspacing=0 cellpadding=0 class=round>'
							stax += '<tr>'
							stax += '<td width=34% align=center class=zv_padding>' + data[z].RESOURCENAME + '</td>'
							stax += '<td align=left class=zv_padding>' + data[z].TASKNAME + '</td>'
							stax += '</tr>'
							stax += '</table></td>'
							stax += '</tr>'
							stax += '<tr>'
							stax += '<td width=34% class=zv_bg1></td>'

							stax += '<td width=33% class=zv_bg1>开始时间</td>'
							stax += '<td width=33% class=zv_bg1>完成时间</td>'
							stax += '</tr>'
							stax += '<tr>'
							stax += '<td class=zv_bg1>计划时间</td>'
							stax += '<td class=zv_bg2>' + TASKSCHEDULEDSTART_time + '</td>'
							stax += '<td class=zv_bg2>' + TASKSCHEDULEDEND_time + '</td>'
							stax += '</tr>'
							stax += '<tr>'
							stax += '<td align=center bgcolor=#E2E8EF>实际时间</td>'
							stax += '<td class=zv_bg2>' + ACTUALSTART_time + '</td>'
							stax += '<td class=zv_bg2>' + ACTUALEND_time + '</td>'
							stax += '</tr>'
							stax += '</table>'
							stax += '<div id="zv_score_'+s+z+'"></div>'
						}
						else {
							stax += '<table width=101% border=0 cellspacing=1 cellpadding=0 bgcolor=#FFF>'
							stax += '<tr>'
							stax += '<td colspan=2 align=center><table width=100% border=0 cellspacing=0 cellpadding=0 class=round>'
							stax += '<tr>'
							stax += '<td width=34% align=center class=zv_padding>' + data[z].RESOURCENAME + '</td>'
							stax += '<td align=left class=zv_padding>' + data[z].TASKNAME + '</td>'
							stax += '</tr>'
							stax += '</table></td>'
							stax += '</tr>'
							stax += '<tr>'
							stax += '<td width=34% class=zv_bg1></td>'
							stax += '<td align=center class=zv_bg1>完成时间</td>'
							stax += '</tr>'
							stax += '<tr>'
							stax += '<td class=zv_bg1>计划时间</td>'
							stax += '<td align=center class=zv_bg2>' + TASKSCHEDULEDEND_time + '</td>'
							stax += '</tr>'
							stax += '<tr>'
							stax += '<td align=center bgcolor=#E2E8EF>实际时间</td>'
							stax += '<td align=center class=zv_bg2>' + ACTUALEND_time + '</td>'
							stax += '</tr>'
							stax += '</table>'
							stax += '<div id="zv_score_'+s+z+'"></div>'
						}
						var EMPLOYEEID = data[z].EMPLOYEEID//员工号
						var TASKSCHEDULEDSTART = data[z].TASKSCHEDULEDSTART//员工号
						var TASKNAME = data[z].TASKNAME//任务名
						if (TASKSCHEDULEDSTART.indexOf("Z") > 0) {
							TASKSCHEDULEDSTART_stamp = ceair_Greenwich_time(TASKSCHEDULEDSTART)
							TASKSCHEDULEDSTART_time = zv_detailed(TASKSCHEDULEDSTART_stamp)
							TASKSCHEDULEDSTART_time = TASKSCHEDULEDSTART_time.substring(0, 10);//截取
						}
						else {
							TASKSCHEDULEDSTART_stamp = ceair_time(TASKSCHEDULEDSTART)
							TASKSCHEDULEDSTART_stamp = zv_transdate(TASKSCHEDULEDSTART_stamp)
						}
						zv_score("zv_score_"+s+z, EMPLOYEEID, TASKSCHEDULEDSTART_time, content, OPERATIONNAME, OPERATIONEXTERNALNAME,TASKNAME, 1);
					}
				}
				else if (score_user_id.indexOf(9) > -1)//区域经理
					{
					
						if (manager_grade_Site == SiteName_val) {
							for (var z = 0; z < data.length; z++) {
								var OPERATIONNAME = data[z].OPERATIONNAME//进港航班
								var OPERATIONEXTERNALNAME = data[z].OPERATIONEXTERNALNAME//出港航班
								var TASKSCHEDULEDEND = data[z].TASKSCHEDULEDEND//整个任务任务预计结束时间
								var TASKSCHEDULEDEND_stamp = ''//整个任务任务预计结束时间时间戳
								var TASKSCHEDULEDEND_time = ''//整个任务任务预计结束时间北京时间
								if (TASKSCHEDULEDEND != '' && TASKSCHEDULEDEND != 'undefined' && TASKSCHEDULEDEND != undefined) {
									if (TASKSCHEDULEDEND.indexOf("Z") > 0) {
										TASKSCHEDULEDEND_stamp = ceair_Greenwich_time(TASKSCHEDULEDEND)
										TASKSCHEDULEDEND_time = zv_detailed(TASKSCHEDULEDEND_stamp)
										TASKSCHEDULEDEND_time = TASKSCHEDULEDEND_time.substring(11, 19);//截取
									}
									else {
										TASKSCHEDULEDEND_stamp = ceair_time(TASKSCHEDULEDEND)
										TASKSCHEDULEDEND_stamp = zv_transdate(TASKSCHEDULEDEND_stamp)
									}
								}
								var ACTUALSTART = data[z].ACTUALSTART//整个任务(实际)开始时间
								var ACTUALSTART_stamp = ''//整个任务(实际)开始时间时间戳
								var ACTUALSTART_time = ''//整个任务(实际)开始时间北京时间
								if (ACTUALSTART != '' && ACTUALSTART != 'undefined' && ACTUALSTART != undefined) {
									if (ACTUALSTART.indexOf("Z") > 0) {
										ACTUALSTART_stamp = ceair_Greenwich_time(ACTUALSTART)
										ACTUALSTART_time = zv_detailed(ACTUALSTART_stamp)
										ACTUALSTART_time = ACTUALSTART_time.substring(11, 19);//截取
									}
									else {
										ACTUALSTART_stamp = ceair_time(ACTUALSTART)
										ACTUALSTART_stamp = zv_transdate(ACTUALSTART_stamp)
									}
								}
								var ACTUALEND = data[z].ACTUALEND//整个任务(实际)结束时间
								var ACTUALEND_stamp = ''//整个任务(实际)结束时间时间戳
								var ACTUALEND_time = ''//整个任务(实际)结束时间北京时间
								if (ACTUALEND != '' && ACTUALEND != 'undefined' && ACTUALEND != undefined) {
									if (ACTUALEND.indexOf("Z") > 0) {
										ACTUALEND_stamp = ceair_Greenwich_time(ACTUALEND)
										ACTUALEND_time = zv_detailed(ACTUALEND_stamp)
										ACTUALEND_time = ACTUALEND_time.substring(11, 19);//截取
									}
									else {
										ACTUALEND_stamp = ceair_time(ACTUALEND)
										ACTUALEND_stamp = zv_transdate(ACTUALEND_stamp)
									}
								}
								var TASKSCHEDULEDSTART = data[z].TASKSCHEDULEDSTART//整个任务任务预计开始时间
								var TASKSCHEDULEDSTART_stamp = ''//整个任务任务预计开始时间时间戳
								var TASKSCHEDULEDSTART_time = ''//整个任务任务预计开始时间北京时间
								if (TASKSCHEDULEDSTART != '' && TASKSCHEDULEDSTART != 'undefined' && TASKSCHEDULEDSTART != undefined) {
									if (TASKSCHEDULEDSTART.indexOf("Z") > 0) {
										TASKSCHEDULEDSTART_stamp = ceair_Greenwich_time(TASKSCHEDULEDSTART)
										TASKSCHEDULEDSTART_time = zv_detailed(TASKSCHEDULEDSTART_stamp)
										TASKSCHEDULEDSTART_time = TASKSCHEDULEDSTART_time.substring(11, 19);//截取
									}
									else {
										TASKSCHEDULEDSTART_stamp = ceair_time(TASKSCHEDULEDSTART)
										TASKSCHEDULEDSTART_stamp = zv_transdate(TASKSCHEDULEDSTART_stamp)
									}
									stax += '<table width=101% border=0 cellspacing=1 cellpadding=0 bgcolor=#FFF>'
									stax += '<tr>'
									stax += '<td colspan=3 align=center><table width=100% border=0 cellspacing=0 cellpadding=0 class=round>'
									stax += '<tr>'
									stax += '<td width=34% align=center class=zv_padding>' + data[z].RESOURCENAME + '</td>'
									stax += '<td align=left class=zv_padding>' + data[z].TASKNAME + '</td>'
									stax += '</tr>'
									stax += '</table></td>'
									stax += '</tr>'
									stax += '<tr>'
									stax += '<td width=34% class=zv_bg1></td>'
									stax += '<td width=33% class=zv_bg1>开始时间</td>'
									stax += '<td width=33% class=zv_bg1>完成时间</td>'
									stax += '</tr>'
									stax += '<tr>'
									stax += '<td class=zv_bg1>计划时间</td>'
									stax += '<td class=zv_bg2>' + TASKSCHEDULEDSTART_time + '</td>'
									stax += '<td class=zv_bg2>' + TASKSCHEDULEDEND_time + '</td>'
									stax += '</tr>'
									stax += '<tr>'
									stax += '<td align=center bgcolor=#E2E8EF>实际时间</td>'
									stax += '<td class=zv_bg2>' + ACTUALSTART_time + '</td>'
									stax += '<td class=zv_bg2>' + ACTUALEND_time + '</td>'
									stax += '</tr>'
									stax += '</table>'
									stax += '<div id="zv_score_'+s+z+'"></div>'
								}
								else {
									stax += '<table width=101% border=0 cellspacing=1 cellpadding=0 bgcolor=#FFF>'
									stax += '<tr>'
									stax += '<td colspan=2 align=center><table width=100% border=0 cellspacing=0 cellpadding=0 class=round>'
									stax += '<tr>'
									stax += '<td width=34% align=center class=zv_padding>' + data[z].RESOURCENAME + '</td>'
									stax += '<td align=left class=zv_padding>' + data[z].TASKNAME + '</td>'
									stax += '</tr>'
									stax += '</table></td>'
									stax += '</tr>'
									stax += '<tr>'
									stax += '<td width=34% class=zv_bg1></td>'
									stax += '<td align=center class=zv_bg1>完成时间</td>'
									stax += '</tr>'
									stax += '<tr>'
									stax += '<td class=zv_bg1>计划时间</td>'
									stax += '<td align=center class=zv_bg2>' + TASKSCHEDULEDEND_time + '</td>'
									stax += '</tr>'
									stax += '<tr>'
									stax += '<td align=center bgcolor=#E2E8EF>实际时间</td>'
									stax += '<td align=center class=zv_bg2>' + ACTUALEND_time + '</td>'
									stax += '</tr>'
									stax += '</table>'
									stax += '<div id="zv_score_'+s+z+'"></div>'
								}
							
								var EMPLOYEEID = data[z].EMPLOYEEID//员工号
								var TASKSCHEDULEDSTART = data[z].TASKSCHEDULEDSTART//员工号
								var TASKNAME = data[z].TASKNAME//任务名
								if (TASKSCHEDULEDSTART.indexOf("Z") > 0) {
									TASKSCHEDULEDSTART_stamp = ceair_Greenwich_time(TASKSCHEDULEDSTART)
									TASKSCHEDULEDSTART_time = zv_detailed(TASKSCHEDULEDSTART_stamp)
									TASKSCHEDULEDSTART_time = TASKSCHEDULEDSTART_time.substring(0, 10);//截取
								}
								else {
									TASKSCHEDULEDSTART_stamp = ceair_time(TASKSCHEDULEDSTART)
									TASKSCHEDULEDSTART_stamp = zv_transdate(TASKSCHEDULEDSTART_stamp)
								}
								zv_score("zv_score_"+s+z, EMPLOYEEID, TASKSCHEDULEDSTART_time, content, OPERATIONNAME, OPERATIONEXTERNALNAME,TASKNAME);
							}
						}
						else {
							no_score(content);
							return false;
						}
					}
					else {
						no_score(content);
						return false;
					}
			}
		}
		var str = "";
		str += '<div id="coverDiv">';
		str += '</div>';
		str += '<div id="dialogboxout">';
		str += '<div id="dialogbox">';
		str += '<div id="dialogboxtitleout">';
		str += '<div id="dialogboxtitle">';
		str += '<span>任务信息</span>';
		str += '<span><img src="images/close.png" id="dialogboxclose" onclick="DialogBox_x()" style="width:1.8em;"></span>';
		str += '</div>';
		str += '</div>';
		str += '<div id="dialogcontent">' + stax + '</div>';
		str += '</div>';
		str += '</div>';
		$$("DialogBox_html").innerHTML = str;
	}
	else {
		no_score(content)
	}
	document.getElementById("coverDiv").style.display = "block";
    document.body.style.overflow = "hidden"
    document.getElementById("dialogboxout").style.display = "block";
	Loading(-1);
}	
function DialogBox_x()
{
		IC.talkingDataCount("智能监控","0019");
	  	document.getElementById("coverDiv").style.display = "none";
        document.body.style.overflow = "scroll"
        document.getElementById("dialogboxout").style.display = "none";
}

function zv_score(ID,EMPLOYEEID,TASKSCHEDULEDSTART_time,content,OPERATIONNAME,OPERATIONEXTERNALNAME,TASKNAME,type){//评分
Loading(0);
	var wsdl = regional_query_score_url
	var nameSpace = regional_query_score_nameSpace
	//var paras ="staffid|date|taskname|operationexternalname|operationname";
	//var values =EMPLOYEEID+"|"+TASKSCHEDULEDSTART_time+"|"+TASKNAME+"|"+OPERATIONEXTERNALNAME+"|"+OPERATIONNAME;
	var paras ="staffid|date|operationexternalname|operationname";
	var values =EMPLOYEEID+"|"+TASKSCHEDULEDSTART_time+"|"+OPERATIONEXTERNALNAME+"|"+OPERATIONNAME;
	var method =regional_query_score_function
	var jsonPage =[{'key':'wsdl','type':'0','value':wsdl},{'key':'KEY1','type':'0','value':'1'},{'key':'KEY2','type':'0','value':'1'}, {'key':'KEY3','type':'0','value':'1'}, {'key':'nameSpace','type':'0','value':nameSpace}, {'key':'method','type':'0','value':method}, {'key':'paras','type':'0','value':paras}, {'key':'values','type':'0','value':values}];
	$.getJSON(UrlClient+"&SOAPType=yes",function(state_json){
	var manager_score='';
	if(state_json!="无数据")
	{
		var stateJosnStr = JSON.stringify(state_json);
		stateJosnStr = stateJosnStr.replace('[[', '['); //字符替换 
		stateJosnStr =  stateJosnStr.replace(']]', ']')
		stateJosnStr = strToJson(stateJosnStr);
		var score_SiteName=stateJosnStr[0].ServiceRecord//所打分数
		var  images_star=''
		for (var h=0;h<5;h++)
		{	
			var img_type='star.png'
			if(h<score_SiteName)
			{
				img_type='star-hover.png'
			}
			images_star+='<div style=float:left><img src=images/'+img_type+'  style=margin-right:0.5em;width:1.2em /></div>'
		}
		manager_score +='<table width=101% border=0 cellspacing=1 cellpadding=0 bgcolor=#FFF>'
		manager_score +='<tr>'
		manager_score +='<td colspan=3 align=left bgcolor=#FFFF66 class=zv_padding>'
		manager_score +='<div style=width:100%><div style=float:left;>区域经理打分：</div><div  style=float:left class=starWrapper>'
		manager_score +=images_star
		manager_score+='</div></div>'
		manager_score +='</td>'
		manager_score +='</tr>'
		manager_score+='</table>'
		$$(ID).innerHTML = manager_score;
		}
		else
		{
			var  images_star=''
			for (var h=0;h<5;h++)
			{	
				images_star+='<div style=float:left><img src=images/star.png  style=margin-right:0.5em;width:1.2em /></div>'
			}
			manager_score +='<table width=101% border=0 cellspacing=1 cellpadding=0 bgcolor=#FFF>'
			manager_score +='<tr>'
			manager_score +='<td colspan=3 align=left bgcolor=#FFFF66 class=zv_padding>'
			if(type==1)
			{
				manager_score +='<div style=width:100%><div style=float:left;>区域经理打分：</div><div  style=float:left class=starWrapper>'+images_star+'</div></div>'
			}
			else{
				var user_json_id =localStorage.getItem("user_json_id");//登录人id
				manager_score +='<div style="width:100%;text-align:center"><input  placeholder="评论备注" type="hidden"   id="comments_id'+EMPLOYEEID+'"  maxlength="30" style=" width:98%; height:1.3em; line-height:1.3em; font-size:1em;"/></div><div style="width:100%;height:1.6em; line-height:1.6em;"><div style=float:left;>区域经理打分：</div><div  style=float:left class=starWrapper onmouseover=rate(this,event,\'comments_id'+EMPLOYEEID+'\')>'+images_star+'</div></div><div  style="width:100%;text-align:left"><div ontouchstart="zy_touch(\'zv-btn-act\')" class="zvbtn  c-blu1  t-wh tx-c uc-a1 " style=" z-index:1000;width:50%;margin-left:25%;height:1.5em; line-height:1.5em; "  onclick="LoadDataS(\'comments_id'+EMPLOYEEID+'\',\''+EMPLOYEEID+'\',\''+TASKNAME+'\',\''+OPERATIONNAME+'\',\''+OPERATIONEXTERNALNAME+'\',\''+user_json_id+'\',\''+TASKSCHEDULEDSTART_time+'\')">确 定</div></div>'//1.id 2.员工号 3.任务名称 4.进港航班 5.出港航班 6.组长员工号 7.任务计划开始日期
			}
			manager_score +='</td>'
			manager_score +='</tr>'
			manager_score+='</table>'
			$$(ID).innerHTML = manager_score;
			Loading(-1);	
		}												
	},"json",function(e){},"POST",jsonPage,false);
}
function no_score(content){//没有评分
	var Class_Data=localStorage.getItem("Class_Data")
	var ico_json=strToJson(Class_Data);
	var flight_time= localStorage.getItem("flight_time");
	var jsonstr= localStorage.getItem("zvData");
	jsonstr = jsonstr.replace('{"DataTable":', '{"items":'); //字符替换 
	jsonstr = "{\"data\": " + jsonstr + "}";
	var strx=''
	var json = strToJson(jsonstr);
	var strs = flight_time.split("|")
	var strs1 = strs[0]
	var strs2 = strs[1]
	var data = jsonsql.query("select * from json.data.items where (OPERATIONNAME=='" + strs1 + "' && OPERATIONPLANNEDEND=='" + strs2 + "')", json);
	var ico_all = new Array();
	for (var c = 0; c < data.length; c++) {
			ico_all[c] = data[c].TASKNAME+"?"//加问号是为了防止包含的字符串给去除掉
	}
	var ico_all = ico_all.reverse().join(",").match(/([^,]+)(?!.*\1)/ig).reverse();//去重复
	var stax = ''
	for (var s = 0; s < ico_all.length; s++) {
		var ico_conditions = ico_all[s];//条件
		ico_conditions=ico_conditions.replace("?",'')
		var SiteName = localStorage.getItem("SiteName");
		var type=""
		var ico_pid=238
				if(ico_conditions=='班组装卸（集）'||ico_conditions=='班组装卸（深）'||ico_conditions=='班组装卸（浅）'||ico_conditions=='班组 装（集）'||ico_conditions=='班组 装（深）'||ico_conditions=='班组 装（浅）'||ico_conditions=='班组 卸（集）'||ico_conditions=='班组 卸（深）'||ico_conditions=='班组 卸（浅）')//班组
				{
					ico_pid=211
				}
				if(ico_conditions=='航后清洁'||ico_conditions=='过站清洁'||ico_conditions=='出港清洁')//清洁班组
				{
					ico_pid=337
				}
				if(ico_conditions=='登机'&&SiteName=='SHAACC')//虹桥 登机
				{
					ico_pid=387
				}
				if(SiteName=='PVGHCC')//浦东任务
				{
						if(ico_conditions=='登机控制（靠桥）'||ico_conditions=='登机控制（不靠桥）')//登机控制
						{
							ico_pid=311
						}
				}
		if (ico_pid == content) {
			if(ico_pid==238)
			{
				if(ico_conditions=='登机控制（靠桥）'||ico_conditions=='登机控制（不靠桥）'||ico_conditions=='登机'||ico_conditions=='航后清洁'||ico_conditions=='过站清洁'||ico_conditions=='出港清洁'||ico_conditions=='班组装卸（集）'||ico_conditions=='班组装卸（深）'||ico_conditions=='班组装卸（浅）'||ico_conditions=='班组 装（集）'||ico_conditions=='班组 装（深）'||ico_conditions=='班组 装（浅）'||ico_conditions=='班组 卸（集）'||ico_conditions=='班组 卸（深）'||ico_conditions=='班组 卸（浅）'||ico_conditions=='航班监控')
				{
					ico_conditions='当为其他的时候查询数据为空';
				}
			}
			var data = jsonsql.query("select * from json.data.items where (TASKNAME=='" + ico_conditions + "'  &&  OPERATIONNAME=='" + strs1 + "' && OPERATIONPLANNEDEND=='" + strs2 + "')", json);
			for (var z = 0; z < data.length; z++) {
				var TASKSCHEDULEDEND = data[z].TASKSCHEDULEDEND//整个任务任务预计结束时间
				var TASKSCHEDULEDEND_stamp = ''//整个任务任务预计结束时间时间戳
				var TASKSCHEDULEDEND_time = ''//整个任务任务预计结束时间北京时间
				if (TASKSCHEDULEDEND != '' && TASKSCHEDULEDEND != 'undefined' && TASKSCHEDULEDEND != undefined) {
					if (TASKSCHEDULEDEND.indexOf("Z") > 0) {
						TASKSCHEDULEDEND_stamp = ceair_Greenwich_time(TASKSCHEDULEDEND)
						TASKSCHEDULEDEND_time = zv_detailed(TASKSCHEDULEDEND_stamp)
						TASKSCHEDULEDEND_time = TASKSCHEDULEDEND_time.substring(11, 19);//截取
					}
					else {
						TASKSCHEDULEDEND_stamp = ceair_time(TASKSCHEDULEDEND)
						TASKSCHEDULEDEND_stamp = zv_transdate(TASKSCHEDULEDEND_stamp)
					}
				}
				var ACTUALSTART = data[z].ACTUALSTART//整个任务(实际)开始时间
				var ACTUALSTART_stamp = ''//整个任务(实际)开始时间时间戳
				var ACTUALSTART_time = ''//整个任务(实际)开始时间北京时间
				if (ACTUALSTART != '' && ACTUALSTART != 'undefined' && ACTUALSTART != undefined) {
					if (ACTUALSTART.indexOf("Z") > 0) {
						ACTUALSTART_stamp = ceair_Greenwich_time(ACTUALSTART)
						ACTUALSTART_time = zv_detailed(ACTUALSTART_stamp)
						ACTUALSTART_time = ACTUALSTART_time.substring(11, 19);//截取
					}
					else {
						ACTUALSTART_stamp = ceair_time(ACTUALSTART)
						ACTUALSTART_stamp = zv_transdate(ACTUALSTART_stamp)
					}
				}
				var ACTUALEND = data[z].ACTUALEND//整个任务(实际)结束时间
				var ACTUALEND_stamp = ''//整个任务(实际)结束时间时间戳
				var ACTUALEND_time = ''//整个任务(实际)结束时间北京时间
				if (ACTUALEND != '' && ACTUALEND != 'undefined' && ACTUALEND != undefined) {
					if (ACTUALEND.indexOf("Z") > 0) {
						ACTUALEND_stamp = ceair_Greenwich_time(ACTUALEND)
						ACTUALEND_time = zv_detailed(ACTUALEND_stamp)
						ACTUALEND_time = ACTUALEND_time.substring(11, 19);//截取
					}
					else {
						ACTUALEND_stamp = ceair_time(ACTUALEND)
						ACTUALEND_stamp = zv_transdate(ACTUALEND_stamp)
					}
				}
				var TASKSCHEDULEDSTART = data[z].TASKSCHEDULEDSTART//整个任务任务预计开始时间
				var TASKSCHEDULEDSTART_stamp = ''//整个任务任务预计开始时间时间戳
				var TASKSCHEDULEDSTART_time = ''//整个任务任务预计开始时间北京时间
				if (TASKSCHEDULEDSTART != '' && TASKSCHEDULEDSTART != 'undefined' && TASKSCHEDULEDSTART != undefined) {
					if (TASKSCHEDULEDSTART.indexOf("Z") > 0) {
						TASKSCHEDULEDSTART_stamp = ceair_Greenwich_time(TASKSCHEDULEDSTART)
						TASKSCHEDULEDSTART_time = zv_detailed(TASKSCHEDULEDSTART_stamp)
						TASKSCHEDULEDSTART_time = TASKSCHEDULEDSTART_time.substring(11, 19);//截取
					}
					else {
						TASKSCHEDULEDSTART_stamp = ceair_time(TASKSCHEDULEDSTART)
						TASKSCHEDULEDSTART_stamp = zv_transdate(TASKSCHEDULEDSTART_stamp)
					}
					stax += '<table width=101% border=0 cellspacing=1 cellpadding=0 bgcolor=#FFF>'
					stax += '<tr>'
					stax += '<td colspan=3 align=center><table width=100% border=0 cellspacing=0 cellpadding=0 class=round>'
					stax += '<tr>'
					stax += '<td width=34% align=center class=zv_padding>' + data[z].RESOURCENAME + '</td>'
					stax += '<td align=left class=zv_padding>' + data[z].TASKNAME + '</td>'
					stax += '</tr>'
					stax += '</table></td>'
					stax += '</tr>'
					stax += '<tr>'
					stax += '<td width=34% class=zv_bg1></td>'
					stax += '<td width=33% class=zv_bg1>开始时间</td>'
					stax += '<td width=33% class=zv_bg1>完成时间</td>'
					stax += '</tr>'
					stax += '<tr>'
					stax += '<td class=zv_bg1>计划时间</td>'
					stax += '<td class=zv_bg2>' + TASKSCHEDULEDSTART_time + '</td>'
					stax += '<td class=zv_bg2>' + TASKSCHEDULEDEND_time + '</td>'
					stax += '</tr>'
					stax += '<tr>'
					stax += '<td align=center bgcolor=#E2E8EF>实际时间</td>'
					stax += '<td class=zv_bg2>' + ACTUALSTART_time + '</td>'
					stax += '<td class=zv_bg2>' + ACTUALEND_time + '</td>'
					stax += '</tr>'
					stax += '</table>'
					stax += '<div style=height:0.6em;></div>'
				}
				else {
					stax += '<table width=101% border=0 cellspacing=1 cellpadding=0 bgcolor=#FFF>'
					stax += '<tr>'
					stax += '<td colspan=2 align=center><table width=100% border=0 cellspacing=0 cellpadding=0 class=round>'
					stax += '<tr>'
					stax += '<td width=34% align=center class=zv_padding>' + data[z].RESOURCENAME + '</td>'
					stax += '<td align=left class=zv_padding>' + data[z].TASKNAME + '</td>'
					stax += '</tr>'
					stax += '</table></td>'
					stax += '</tr>'
					stax += '<tr>'
					stax += '<td width=34% class=zv_bg1></td>'
					stax += '<td align=center class=zv_bg1>完成时间</td>'
					stax += '</tr>'
					stax += '<tr>'
					stax += '<td class=zv_bg1>计划时间</td>'
					stax += '<td align=center class=zv_bg2>' + TASKSCHEDULEDEND_time + '</td>'
					stax += '</tr>'
					stax += '<tr>'
					stax += '<td align=center bgcolor=#E2E8EF>实际时间</td>'
					stax += '<td align=center class=zv_bg2>' + ACTUALEND_time + '</td>'
					stax += '</tr>'
					stax += '</table>'
					stax += '<div style=height:0.6em;></div>'
				}
			}
		}
		}	
		var str = "";
		str += '<div id="coverDiv">';
		str += '</div>';
		str += '<div id="dialogboxout">';
		str += '<div id="dialogbox">';
		str += '<div id="dialogboxtitleout">';
		str += '<div id="dialogboxtitle">';
		str += '<span>任务信息</span>';
		str += '<span><img src="images/close.png" id="dialogboxclose" onclick="DialogBox_x()" style="width:1.8em;"></span>';
		str += '</div>';
		str += '</div>';
		str += '<div id="dialogcontent">' + stax + '</div>';
		str += '</div>';
		str += '</div>';
		$$("DialogBox_html").innerHTML = str;
		Loading(-1);
		document.getElementById("coverDiv").style.display = "block";
		document.body.style.overflow = "hidden"
		document.getElementById("dialogboxout").style.display = "block";
}	
    </script>
</html>
